<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Orders
 *
 * @property int $id 自增id
 * @property int $user_id 用户id
 * @property string $order_num 订单编号
 * @property float $m_amount 订单原总额
 * @property float $s_amount 订单实际总额
 * @property int $ispay 是否已支付，0：未支付，1：已支付
 * @property string|null $paytime 支付时间
 * @property string|null $pay_type 支付方式，有weixin、alipay、bank
 * @property int $invoice_id 发票信息id
 * @property string|null $express_num 配送单号
 * @property string|null $express 快递公司
 * @property float $express_fee 快递费用
 * @property string|null $express_time 发货时间
 * @property int $address_id 配送地址id
 * @property string|null $note 备注
 * @property int $status 订单状态，0：未确认，1：确认订单，2：商家已确认，3：已发货，4:已收货并完成，5:关闭交易，6：退货处理
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereAddressId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereInvoiceId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereIspay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereMAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereNote($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereOrderNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePaytime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereSAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withoutTrashed()
 * @mixin \Eloquent
 */
class Orders extends Model
{
    protected $table='orders';
    use SoftDeletes;
}
